Skip to content

fix(builtins): preserve full path in ls output for file arguments#858

Merged
chaliy merged 1 commit intomainfrom
fix/issue-849-ls-path-preservation
Mar 27, 2026
Merged

fix(builtins): preserve full path in ls output for file arguments#858
chaliy merged 1 commit intomainfrom
fix/issue-849-ls-path-preservation

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Mar 27, 2026

Summary

  • ls now preserves full paths when given file arguments (e.g., ls /tmp/test/*.md)
  • Directory listings still show filenames only (correct behavior)
  • Matches real ls behavior

Test plan

  • New ls spec tests covering file paths vs directory listing
  • Full spec test suite green

Closes #849

@chaliy chaliy merged commit ed0707a into main Mar 27, 2026
23 checks passed
@chaliy chaliy deleted the fix/issue-849-ls-path-preservation branch March 27, 2026 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: ls strips directory path from file arguments

1 participant